package com.etl.dataflow.scheduler.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etl.dataflow.scheduler.admin.entity.DataflowTaskInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 任务信息 Mapper 接口
 * </p>
 *
 * @author dx
 * @since 2022-04-24
 */
@Repository
public interface DataflowTaskInfoMapper extends BaseMapper<DataflowTaskInfo> {

    /**
     * 通过任务id列表批量更新任务定时器状态
     *
     * @param ids
     * @param timerState
     * @return
     */
    int updateTimerStateByIds(@Param("ids") List<Long> ids, @Param("timerState") int timerState);
}
